package com.swpu.service_knowledge.service;

import com.swpu.service_knowledge.entity.KnowledgeArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_knowledge.entity.vo.ArticleCollectVo;
import com.swpu.service_knowledge.entity.vo.KnowledgeArticleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-03-27
 */
public interface KnowledgeArticleService extends IService<KnowledgeArticle> {

    List<KnowledgeArticle> getKnowledgeArticleByCategoryId(Integer id);

    List<KnowledgeArticleVo> getAllKnowledgeArticle();

    KnowledgeArticle getKnowledgeArticleById(Integer id);

    List<ArticleCollectVo> getUserArticleCollectList(String openid);

    List<KnowledgeArticle> getHotKnowledgeArticle();

    List<KnowledgeArticle> getKnowledgeArticleByTitle(String title);
}
